/**
 * 移动端全局样式
 */

// 移动端适配变量
$mobile-max-width: 768px;
$primary-color: #ff6b6b;
$text-color: #303133;
$text-color-secondary: #606266;
$text-color-light: #909399;
$border-color: #ebeef5;
$background-color: #f5f7fa;

// 移动端全局样式
.mobile-container {
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: $text-color;
  background-color: $background-color;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

// 移动端标题样式
.mobile-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: $text-color;
}

// 移动端卡片样式
.mobile-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  overflow: hidden;
}

// 移动端按钮样式覆盖
.el-button--primary.mobile-button {
  background-color: $primary-color;
  border-color: $primary-color;
  
  &:hover, &:focus {
    background-color: lighten($primary-color, 10%);
    border-color: lighten($primary-color, 10%);
  }
}

// 移动端表单样式
.mobile-form {
  .el-form-item__label {
    font-size: 14px;
  }
  
  .el-input__inner {
    height: 40px;
  }
}

// 移动端导航栏
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 100;
  
  &-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
    text-align: center;
  }
  
  &-back {
    font-size: 20px;
    cursor: pointer;
  }
}

// 移动端底部导航
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  z-index: 100;
  
  &-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: $text-color-light;
    font-size: 12px;
    
    &.active {
      color: $primary-color;
    }
    
    .el-icon {
      font-size: 20px;
      margin-bottom: 2px;
    }
  }
}

// 响应式媒体查询
@media screen and (max-width: $mobile-max-width) {
  .pc-only {
    display: none !important;
  }
}

@media screen and (min-width: $mobile-max-width + 1) {
  .mobile-only {
    display: none !important;
  }
}